﻿using BassHelper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace SpectrumTest
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            BassEngine be = BassEngine.Instance;
            be.Volume = 0.618;
            be.OpenMusic("https://pcs.baidu.com/rest/2.0/pcs/stream?method=download&access_token=3.dc2042e45b45a519496d08e08048ae2d.2592000.1370412604.3674552515-248414&path=%2Fapps%2F%E6%B5%8B%E8%AF%95%E5%BA%94%E7%94%A8%2Ffr.mp3");
            //TimeSpan ts = be.ChannelPosition;
            //be.OpenMusic("songs/广岛之恋 - 莫文蔚 张洪量.mp3");
            be.Play();
            SpectrumAnalyzer.RegisterSoundPlayer(BassEngine.Instance);
            //SpectrumAnalyzer2.RegisterSoundPlayer(BassEngine.Instance);
           // waveformTimeLine.RegisterSoundPlayer(BassEngine.Instance); 
        }
    }
}
